package com.example.demo.controller;

import com.example.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：roc.zou
 * @date ：Created in 2022/4/20 14:37
 * @description ：
 */
@RestController
public class DemoController {
    private int a = 1;

    @Autowired
    private DemoService demoService;
    @GetMapping("/get")
    public Object get(){
        return demoService.get();
    }

    @GetMapping("/post")
    public void post(){
        while (true){

        }
    }
}
